package com.maduar.demo;

import java.time.Duration;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalUnit;

/**
 * Description:
 *
 * @author danny.pang danny.pang@ebizprise.com
 * @date 2019-12-24 22:32
 */
public class TimeDemo {

    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        LocalDate localDate = now.plusDays(67);
        System.out.println(localDate);

        Duration zero = Duration.ZERO;
        System.out.println("zero: " + zero);
        System.out.println("zero: " + zero.abs());

        Duration of = Duration.of(1000L, ChronoUnit.MINUTES);
//        System.out.println("of: " + of.to());
    }
}
